package com.zhuzhoujia.city_wide_action;

import com.example.zhuzhoujia.R;
import com.lidroid.xutils.ViewUtils;
import com.lidroid.xutils.view.annotation.ViewInject;
import com.zhuzhoujia.activityparent.ActivityParent;
import com.zhuzhoujia.utils.Utils;

import android.app.ActionBar;
import android.app.Activity;
import android.graphics.BitmapFactory;
import android.os.Bundle;
import android.widget.ImageView;

public class ActivityDetailActivity extends ActivityParent {
	@ViewInject(R.id.iv)
	ImageView iv;

	@Override
	protected void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		setContentView(R.layout.activity_detail);
		ViewUtils.inject(this);
		setStatusBarTintResource(this, R.color.green);
		ActionBar actionBar = this.getActionBar();
		actionBar.setDisplayShowHomeEnabled(false);
		actionBar.setBackgroundDrawable(getResources().getDrawable(R.color.green));
		actionBar.setDisplayShowTitleEnabled(true);
		actionBar.setCustomView(R.layout.activity_detail_actionbar);
		actionBar.setDisplayShowCustomEnabled(true);
		Utils utils = new Utils();
		iv.setImageBitmap(utils.matrixBitmap(BitmapFactory.decodeResource(getResources(), R.drawable.newstest),
				getdm().widthPixels));
	}
}
